﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using BusinessLogic;

namespace ATM_System_Mock1_G2
{
    public partial class Transfer2 : System.Web.UI.Page
    {
        AccountEntites a = new AccountEntites();
        protected void Page_Load(object sender, EventArgs e)
        {
            
            a.AccountID = int.Parse(Session["AccountReceiveID"].ToString());
            if (!Page.IsPostBack)
            {
                CustomerBL cuB = new CustomerBL();
                DataTable dt = new DataTable();
                
                dt = cuB.DiplayAccountReceive(a);
                lb_name.Text = dt.Rows[0]["Name"].ToString();
                lb_ID.Text = dt.Rows[0]["AccountID"].ToString();
            }
            
        }

        protected void ImageButton5_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("Transfer3.aspx");
        }

        protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("Transfer.aspx");
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            Response.Redirect("Transfer.aspx");
        }

        protected void Button11_Click(object sender, EventArgs e)
        {
            Response.Redirect("Transfer3.aspx");
        }
    }
}